package login

import (
	"go_server/game_server/protocol/pb"
	"go_server/game_server/util"
	"go_server/zinx/ziface"
	"go_server/zinx/znet"
)

type clientTestApi struct {
	znet.BaseRouter
}

func (*clientTestApi) Handle(request ziface.IRequest) {
	conn := request.GetConnection()
	msg := &pb.TestMesC2S{}
	if !util.PBParseRet(request, msg) {
		return
	}

	data := &pb.TestMesS2C{
		Id: msg.Id,
		IntArray: msg.IntArray,
		Str: msg.Str,
	}
	conn.SendBuffPBMsg(uint32(pb.ProtocolManager_ClientTest), data)
}
